<template>
    <div>
      测试
      <Father :name="a" :msg="msg" @add="add" :ss="'2'" v-model="open" @oopen="oopen">

      </Father>
    </div>
    <button @click="add">修改</button>
    <button @click="oopen">我从外面进入</button>
</template>

<script  setup>

import Father from "@/components/father/index.vue"
const a = ref('我好累')
const msg = ref('我好累')
const open = ref(false)
const add = () => {
msg.value = '累了也一点办法也没有'
};
const oopen = () => {
open.value = !open.value
}

</script>

<style lang="less" scoped>

</style>